package com.lecture.junit.tdd.example;

import java.util.Deque;

public interface IAccount {

    public boolean passwordMatches(String password);

    public void setLoggedIn(boolean loggedIn);

    public void setRevoked(boolean revoked);

    public boolean isRevoked();

    public String getUserName();

    void setPassword(String newPass);

    long getLastActivityAge();

    long getPasswordAge();

    void updateLastActivityTimestamp();

    void updateLastPasswordSetTimestamp();

    Deque<String> getRecentPasswords();

    void forgetOldestPassword();
}
